<?php
/**
 * Created by PhpStorm.
 * User: zhongbaitong
 * Date: 2020/1/9
 * Time: 10:42
 */

namespace app\common\exception;

use think\Exception;

class ApiError extends Exception
{
    // 自定义错误描述
    public $message;
    // 自定义状态码
    public $code;
    // http 状态码
    public $status;

    public function __construct($message = "apiError", $code = 0, $status = 999)
    {
        $this->message = $message;
        $this->code = $code;
        $this->status = $status;
    }
}